import React from 'react';
import { QRCode } from 'antd';
import { useTranslation } from 'react-i18next';
const App = () => {
    const { t } = useTranslation();
    const name = 'tak zhang'
    return (
        <>
            <QRCode
                errorLevel="H"
                value="https://ant.design/"
                icon="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
            />
            <div>
                <h4>{t('welcome')}</h4>
                <p>{t('hello', {name})}</p>
            </div>
        </>
        
    )
};
export default App;